$OpenBSD: patch-OMakefile,v 1.2 2014/01/10 18:43:38 landry Exp $
--- OMakefile.orig	Wed Jun 22 20:04:32 2011
+++ OMakefile	Fri Jan 10 19:36:56 2014
@@ -24,6 +24,7 @@ if $(defined WithOMyApt)
 INCLUDES[]=
   /usr/include/X11
   /usr/local/include
+  ${X11BASE}/include
 
 # Specify non standard library directories
 LDFLAGS[]+= 
@@ -34,9 +35,10 @@ LDFLAGS[]+= 
 PATH_RGB_TXT[]=
   /etc/X11
   /usr/share/X11
+  ${X11BASE}/share/X11
 
 BYTE_ENABLED=1
-NATIVE_ENABLED=1
+NATIVE_ENABLED=$(OCAML_NATIVE)
 
 ########################################################################
 
@@ -122,11 +124,11 @@ print_configured() =
     export
 
   HAVE_Z = $(Check_header_library z, zlib.h, zlibVersion)
-  HAVE_PNG = $(Check_header_library png, png.h, png_create_read_struct)
+  HAVE_PNG = $(Check_header_library m z png, png.h, png_create_read_struct)
   SUPPORT_PNG = $(and $(HAVE_Z) $(HAVE_PNG))
   LDFLAGS_png=
   if $(SUPPORT_PNG)
-    LDFLAGS_png=-lpng -lz
+    LDFLAGS_png=-lpng -lz -lm
     SUPPORTED_FORMATS+=png
     export
 
@@ -162,7 +164,7 @@ print_configured() =
     SUPPORTED_FORMATS+=ps
     export
 
-  SUPPORT_LABLGTK2 = $(Check_ocamlfind_package lablgtk2)
+  SUPPORT_LABLGTK2 = false
   if $(SUPPORT_LABLGTK2)
     SUPPORTED_NON_FORMATS+=lablgtk2
     OCAMLPACKS+=lablgtk2
